<?php echo form_open(BASE_URL . '/' . $this -> admin . '/edit_award', array('id' => 'award_c_form', 'method' => 'post')); ?>
<div class="row1">
	<div class="error_msg" style="margin-left:15px;">
		<?php
		if (isset($error) && $error != '') {
			echo $error;
		}
		?>
	</div>
	<div class="success_msg" style="margin-left:15px;">
		<?php
		if ($this -> session -> userdata('award_success')) {
			echo $this -> session -> userdata('award_success');
			$this -> session -> unset_userdata('award_success');
		} 
		?>
	</div>
	<div class="form-group col-sm-12">
		<label for="scopus2">Scopus</label>
		<input class="form-control white" id="scopus2" name="scopus2" placeholder="00.00" type="text" 
		value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Scopus'){echo $temp['award_criteria_value'];}}}else echo set_value('scopus2'); ?>">
		<div class="error" id="err-name1">
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="form-group col-sm-12">
		<div class="form-group col-md-6 custom_padding" style="padding-left:0px !important;">
			<label for="publication2">Publications</label>
			<input class="form-control white" id="publication2" name="publication2" placeholder="00.00" type="text" 
			value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Publications'){echo $temp['award_criteria_value'];}}}else echo set_value('publication2'); ?>">
			<div class="error" id="err-name2">
			</div>
		</div>
		<div class="form-group col-md-6 sub_categories" style="margin-top:40px;">
			<a data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Sub-Categories</a>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="col-md-6" style="width:60% !important;">
		<div class="collapse in" id="collapseExample">
			<div class="well">
				<form>
					<div class="form-inline">
						<div class="col-md-12">
							<div class="form-group labels" style="float:left;">
								Journals :
							</div>
							<div class="form-group" style="float:right;">
								<input type="text" name="journal" id="journal" class="form-control" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Journals'){echo $temp['award_criteria_value'];}}}else echo set_value('journal'); ?>">
							</div>
							<div class="clearfix"></div>
						</div>
						<div class="clearfix"></div>
						<div class="space10"></div>
						<div class="col-md-12">
							<div class="form-group labels" style="float:left;">
								Patents :
							</div>
							<div class="form-group" style="float:right;">
								<input type="text" name="patents" id="patents" class="form-control" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Patents'){echo $temp['award_criteria_value'];}}}else echo set_value('patents'); ?>">
							</div>
							<div class="clearfix"></div>
						</div>
						<div class="clearfix"></div>
						<div class="space10"></div>
						<div class="col-md-12">
							<div class="form-group labels" style="float:left;">
								Conference Proceedings :
							</div>
							<div class="form-group" style="float:right;">
								<input type="text" name="conf_pro" id="conf_pro" class="form-control" id="" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Conference Proceedings'){echo $temp['award_criteria_value'];}}}else echo set_value('conf_pro'); ?>">
							</div>
							<div class="clearfix"></div>
						</div>
						<div class="clearfix"></div>
						<div class="space10"></div>
						<div class="col-md-12">
							<div class="form-group labels" style="float:left;">
								Books/Monographs :
							</div>
							<div class="form-group" style="float:right;">
								<input type="text" name="books" id="books" class="form-control" id="" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Books/Monographs'){echo $temp['award_criteria_value'];}}}else echo set_value('books'); ?>">
							</div>
							<div class="clearfix"></div>
						</div>
						<div class="clearfix"></div>
					</div>

				</form>
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="form-group col-sm-12">
		<div class="col-md-6 custom_padding" style="padding-left:0px !important;">
			<label for="Social2">Social Impact</label>
			<input class="form-control white" id="social2" name="social2" placeholder="00.00" type="text" 
			value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Social Impact'){echo $temp['award_criteria_value'];}}}else echo set_value('social2'); ?>">
			<div class="error" id="err-name3">
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="form-group col-sm-12">
		<a class="" data-toggle="collapse" href="#collapseExample2" aria-expanded="false" aria-controls="collapseExample">More Criteria</a>
		<div class="collapse <?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && ($temp['award_criteria_name'] == 'More Criteria 1' || $temp['award_criteria_name'] == 'More Criteria 2' || $temp['award_criteria_name'] == 'More Criteria 3')){echo ' in';}}} ?>" id="collapseExample2">
			<div class="well">
				<div class="row" style="margin-left:-1px !important;">
						<div class="form-inline">
							<div class="form-group">
								&nbsp;&nbsp;&nbsp;&nbsp; More Criteria 1 Score Name :
							</div>
							<div class="form-group">
								<input type="text" name="mc1_label" class="form-control white" id="mc1_label" placeholder="" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_label']) && isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'More Criteria 1'){echo $temp['award_criteria_label'];}}}else echo set_value('mc1_label'); ?>">
							</div>
							<div class="form-group">
								:
							</div>
							<div class="form-group">
								<input type="text" name="mc1" id="mc1" class="form-control white" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'More Criteria 1'){echo $temp['award_criteria_value'];}}}else echo set_value('mc1'); ?>">
							</div>
						</div>
						<div class="space20"></div>
						<div class="form-inline">
							<div class="form-group">
								&nbsp;&nbsp;&nbsp;&nbsp; More Criteria 2 Score Name :
							</div>
							<div class="form-group">
								<input type="text" class="form-control white" id="mc2_label" name="mc2_label" placeholder="" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_label']) && isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'More Criteria 2'){echo $temp['award_criteria_label'];}}}else echo set_value('mc2_label'); ?>">
							</div>
							<div class="form-group">
								:
							</div>
							<div class="form-group">
								<input type="text" class="form-control white" id="mc2" name="mc2" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'More Criteria 2'){echo $temp['award_criteria_value'];}}}else echo set_value('mc2'); ?>">
							</div>
						</div>
						<div class="space20"></div>
						<div class="form-inline">
							<div class="form-group">
								&nbsp;&nbsp;&nbsp;&nbsp; More Criteria 3 Score Name :
							</div>
							<div class="form-group">
								<input type="text" class="form-control white" id="mc3_label" name="mc3_label" placeholder="" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_label']) && isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'More Criteria 3'){echo $temp['award_criteria_label'];}}}else echo set_value('mc3_label'); ?>">
							</div>
							<div class="form-group">
								:
							</div>
							<div class="form-group">
								<input type="text" class="form-control white" id="mc3" name="mc3" placeholder="00.00" 
								value="<?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'More Criteria 3'){echo $temp['award_criteria_value'];}}}else echo set_value('mc3'); ?>">
							</div>
						</div>
				</div>
			</div>
		</div>
	</div>
	<div class="clearfix"></div>
	<div class="form-group col-sm-12">
		<label for="Scoring2">Scoring Guideline</label>
		<textarea class="form-control white" id="scoring2" name="scoring2"><?php if(isset($criteria_data)){foreach($criteria_data as $temp){if(isset($temp['award_criteria_name']) && $temp['award_criteria_name'] == 'Scoring Guideline'){echo $temp['award_criteria_value'];}}}else echo set_value('scoring2'); ?></textarea>
		<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('scoring2', {
					"toolbar" : "Standard"
				});
				//]]>
			</script>
		<div class="error" id="err-name4">
		</div>
	</div>
	<input type="hidden" name="select_award_id" value="<?php if(isset($post_value[0]['award_id']))echo $post_value[0]['award_id'];else echo set_value('select_award_id'); ?>" />
	<input type="hidden" name="edit_type" value="criteria" />
	<div class="clearfix space10"></div>
</div>
<button type="button" class="btn btn-primary" id="award_c_btn">
	Save & Continue
</button>
<?php echo form_close();?>